#pragma once

#include <vector>
#include "IManager.h"
using namespace std;

#define RAND_FLOAT(min,max) (((rand()/(float)RAND_MAX)*((max)-(min)))+(min))

class CEmitter;

class CParticleManager : public IManager
{
	vector<CEmitter*> m_vecEmitters;
	int m_nEmitterCount;

	

	CParticleManager();
	CParticleManager(const CParticleManager&);
	CParticleManager& operator=(const CParticleManager&);
	~CParticleManager();

public:

	static CParticleManager* GetInstance();
	bool DeleteInstance();
	void Init();
	void Clear();
	void Shutdown();
	void Update(float fDelta);
	void Render();
	CEmitter* AddEmitter(int posX, int posY, const char* szFilePath);
	void RemoveEmitter(CEmitter* pEmitter);
};